package com.dykj.fireFighting.web.service;


import com.dykj.fireFighting.api.base.effecttimesetting.entity.EffectiveTimeSetting;
import com.dykj.fireFighting.web.model.Device;
import com.dykj.fireFighting.web.model.DeviceFault;
import com.dykj.fireFighting.web.model.report.DevHis;
import com.dykj.fireFighting.web.model.report.DevHisWater;
import com.dykj.fireFighting.web.model.report.FaultRecoveryRecord;
import com.dykj.fireFighting.web.model.vo.DevHisVo;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2019-9-17.
 */
public interface DevHisService {
    int insertHis(DevHis record);
    DevHis getNewestGz(String relationId);
    EffectiveTimeSetting getEffectiveTimeSetting(String unitId);
    int insetFaultRecoveryRecord(FaultRecoveryRecord faultRecoveryRecord);
    int insertDevHisWater(DevHisWater devHisWater);
    Device queryCreateBy(String relationId);
    int updateTopRui(Device device);
    /**
     * 获取水设备当前状态
     * @param relationId
     * @return
     */
    String getWaterDevStatus(String relationId);
    List<Device> getDevices(Map<String, String> params);
    List<DevHisVo> getDevHiss(String[] devIds, String ztfssj);
    int insertOrUpdateFaultDevice(DeviceFault deviceFault);
    DeviceFault queryById(String relationId);
    int deleteFaultDevice(String relationId);

}
